get a list of all mailboxes, created  and deleted in last 7 days
Hi I want to get a list of all mailboxes, created and created in last 7 days
August 24th, 2010 7:05am

Hi I want to get a list of all mailboxes, created and Deleted in last 7 days
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2010 7:10am

Regarding created mails u can get it from shell.Regarding deleted items get it from event log. -bpara
August 24th, 2010 7:57am

what version of exchange? you can use wmi or powershell to get the info based on ur exch version.Thiyagu | MCTS/MCITP - Exchange 2007 | MCSE 2003[Messaging] | http://www.myExchangeWorld.com. This posting is provided "AS IS" with no warranties, and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2010 8:00am

what version of exchange? you can use wmi or powershell to get the info based on ur exch version. Thiyagu | MCTS/MCITP - Exchange 2007 | MCSE 2003[Messaging] | http://www.myExchangeWorld.com. This posting is provided "AS IS" with no warranties, and confers no rights. Agree with Thiyagu. WMI is the best option. Get-Wmiobject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer EXCHANGESERVERNAME | where { $_.DateDis coveredAbsentInDS -like '2*' } | sort-object MailboxDisplayName | ft MailboxDisplayName,ServerName,StorageGroupName,Stor eName This will give all the mailboxes deleted in year 2* Let me try for the other one. Good luck Shaba
August 24th, 2010 10:06am

Replace the condition part to make the search based on your requirement. If you want to get the mailboxes deleted in the last 8 days, Make the start date in YYYYMMDD format and modify the where filter where { $_.DateDiscoveredAbsentInDS -ge 'YYYYMMDD*'} Good luck Shaba
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2010 10:16am

hi shaba, can i have complete command please
August 24th, 2010 11:11am

Here we go... Get-Wmiobject -namespace root\MicrosoftExchangeV2 -class Exchange_Mailbox -computer EXCHANGESERVERNAME | where { $_.DateDiscoveredAbsentInDS -like '20100810*' } | sort-object MailboxDisplayName | ft MailboxDisplayName,ServerName,StorageGroupName,StoreName This will find all mailbox which got deleted after 2010 - Aug 10th . Hope this helps. Good luck Shaba
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2010 12:20pm

hi shaba thanks for ur quick reply ... here we have one more option to get the created usres in last 7 days Get-User -resultsize unlimited | where {$_.WhenCreated -gt (get-date).adddays(-7)} | ft Name,whenCreated –Autosize regards avinash
August 24th, 2010 1:10pm

hi shaba thanks for ur quick reply ... here we have one more option to get the created usres in last 7 days Get-User -resultsize unlimited | where {$_.WhenCreated -gt (get-date).adddays(-7)} | ft Name,whenCreated –Autosize regards avinash Avinash This query will only give the users who got created in the last 7 days. And its purely based on the AD attribute WhenCreated Users can be with mailbox or without mailbox :) Also, We can create the user today and create the mailbox one week later. In such case, this report wont help. Good luck Shaba
Free Windows Admin Tool Kit Click here and download it now
August 24th, 2010 1:28pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics